package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class Poster implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * ID       db_column: id 
     */	
	private String id;
    /**
     * 背景图       db_column: bck_image
     */
	private String bckImage;
    /**
     * 标题描述       db_column: title
     */
	private String title;
    /**
     * 二级标题       db_column: title_two
     */
	private String titleTwo;
    /**
     * 三级标题       db_column: title_three
     */
	private String titleThree;
    /**
     * 标题颜色       db_column: title_color
     */
	private String titleColor;
    /**
     * 昵称颜色       db_column: name_color
     */
	private String nameColor;

	private String qrcode;
	//columns END

	public Poster(){
	}

	public Poster(
		String id
	){
		this.id = id;
	}

	public String getQrcode() {
		return qrcode;
	}

	public void setQrcode(String qrcode) {
		this.qrcode = qrcode;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getId() {
		return this.id;
	}
	public void setBckImage(String value) {
		this.bckImage = value;
	}

	public String getBckImage() {
		return this.bckImage;
	}
	public void setTitle(String value) {
		this.title = value;
	}

	public String getTitle() {
		return this.title;
	}
	public void setTitleTwo(String value) {
		this.titleTwo = value;
	}

	public String getTitleTwo() {
		return this.titleTwo;
	}
	public void setTitleThree(String value) {
		this.titleThree = value;
	}

	public String getTitleThree() {
		return this.titleThree;
	}
	public void setTitleColor(String value) {
		this.titleColor = value;
	}

	public String getTitleColor() {
		return this.titleColor;
	}
	public void setNameColor(String value) {
		this.nameColor = value;
	}

	public String getNameColor() {
		return this.nameColor;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Poster == false) return false;
		if(this == obj) return true;
		Poster other = (Poster)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

